@extends('layouts._app')
@section('content')
    <body>
    <div class="wrap-container">
        @include('layouts._flash')
        <div id="LAY-popup-user-add" class="layui-layer-content">
            <div class="layui-form" lay-filter="layuiadmin-form-role" style="padding: 20px 30px 0 0;">
                {!! Form::open(['route' => 'blog.user.store','class'=>'layui-form','method'=>'post']) !!}
                {!! Form::hidden('submit','7') !!}
                <div class="layui-form-item">
                    {!! Form::label('','* 用户名：',['class'=>'layui-form-label','style'=>'color:red']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('name','',['required','lay-verify'=>'required','class'=>'layui-input','placeholder'=>'请输入名称']) !!}
                    </div>
                </div>

                <div class="layui-form-item">
                    {!! Form::label('','手机号：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('phone','',['class'=>'layui-input','placeholder'=>'请输入手机号']) !!}
                    </div>
                </div>

                <div class="layui-form-item">
                    {!! Form::label('','* 邮箱：',['class'=>'layui-form-label','style'=>'color:red']) !!}
                    <div class="layui-input-inline">
                        {!! Form::email('email','',['required','id'=>'email_7','lay-verify'=>'required','class'=>'layui-input','placeholder'=>'请输入邮箱号']) !!}
                    </div>
                    <a href="javascript:void(0);" onclick="captcha('0',7,'{{route('code')}}','{{ csrf_token() }}')"
                       id="code_de_7"
                       style="margin:10px;text-align: center">发送验证码</a>
                </div>
                <div class="layui-form-item" id="email_code_7" style="display: none;">
                    {!! Form::label('','邮箱验证码：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-inline">
                        {!! Form::text('code','',['readonly','id'=>'code_7','class'=>'layui-input','placeholder'=>'无更改无需填写']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','密码：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::password('password',['class'=>'layui-input','placeholder'=>'密码可以不用填写,默认123456']) !!}
                    </div>
                </div>

                <div class="layui-form-item">
                    {!! Form::label('','真实姓名：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('rename','',['class'=>'layui-input','placeholder'=>'请输入真实姓名']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','昵称：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('username','',['class'=>'layui-input','placeholder'=>'请输入昵称']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','身份证：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('card','',['class'=>'layui-input','placeholder'=>'请输入身份证']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('sex','性别：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="1" title="男" checked>
                        <input type="radio" name="sex" value="2" title="女">
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','选择地区：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        <div class="layui-input-inline" style="width: 120px">
                            <select name="province" lay-filter="province" class="province">
                                <option value="">请选择省</option>
                            </select>
                        </div>
                        <div class="layui-input-inline" style="width: 120px">
                            <select name="city" lay-filter="city" disabled>
                                <option value="">请选择市</option>
                            </select>
                        </div>
                        <div class="layui-input-inline" style="width: 120px">
                            <select name="area" lay-filter="area" disabled>
                                <option value="">请选择县/区</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','备注：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::textarea('content','',['class'=>'layui-textarea','placeholder'=>'请输入备注']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    {!! Form::label('','邀请码：',['class'=>'layui-form-label']) !!}
                    <div class="layui-input-block">
                        {!! Form::text('user_code','',['class'=>'layui-input','placeholder'=>'有邀请码就填写']) !!}
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        {!! Form::submit('确认',['class'=>'layui-btn','lay-filter'=>'formDemo','lay-submit']) !!}
                        {!! Form::reset('重置',['class'=>'layui-btn layui-btn-primary']) !!}
                    </div>
                </div>
                {!! Form::close() !!}
            </div>
        </div>
    </div>
    <script src="{{asset('static/admin/layui/layui.js')}}" type="text/javascript" charset="utf-8"></script>
    <script src="{{asset('js/jquery.min.js')}}" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="{{asset('js/jquery.base64.js')}}"></script>
    <script type="text/javascript" src="{{asset('js/jquery.cookie.js')}}"></script>
    <script type="text/javascript" src="{{asset('js/common.js')}}"></script>
    <script>
        captchaInput(7);
        //Demo
        layui.config({
            base: '../../js/'
        }).use(['form', 'layer', 'address'], function () {
            var form = layui.form(),
                address = layui.address();

            //监听提交
            form.on('submit(formDemo)', function (data) {
            });
        })
    </script>
    </body>
@endsection
